<%--
  Created by IntelliJ IDEA.
  User: WT-SUN
  Date: 2017/4/8
  Time: 9:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
    <title>编辑危害因素</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript">
        var harmId = '${fac.harmId}';
    </script>
    <script type="text/javascript" src="${ctx}/resources/js/occupationalHealth/hazardFactor/edit.js"></script>
</head>
<body>
<div class="form-wrap">
    <form id="factorEditForm" method="post">
        <input type="hidden" id="facid" name="id" value="${fac.id}"/>
        <table cellspacing="0" cellpadding="0" class="watch-table" style="width: 700px">
            <tr>
                <td class="watch-td">危害因素名称<span>*</span></td>
                <td colspan="8" class="watch-tdA">
                    <input class="easyui-textbox" type="text" name="name" value="${fac.name==null?"":fac.name}"  data-options="required:true" style="width: 576px">
                </td>
            </tr>
            <tr>
                <td class="watch-td">限制值</td>
                <td colspan="3">
                    <input class="easyui-numberbox" type="text" name="limitValue" value="${fac.limitValue==null?"":fac.limitValue}" data-options="min:0,precision:2" style="width: 240px">
                </td>
                <td colspan="2" class="watch-td">标准值</td>
                <td colspan="3" class="watch-tdA">
                    <input class="easyui-numberbox" type="text" name="standardValue" value="${fac.standardValue==null?"":fac.standardValue}" data-options="min:0,precision:2" style="width: 240px">
                </td>
            </tr>
            <tr>
                <td class="watch-td">危害因素类型<span>*</span></td>
                <td colspan="3">
                    <select class="easyui-combobox" name="harmId" id="harmId" style="width: 240px"
                            data-options="required:true,editable:false,selectOnNavigation:true">
                    </select>
                </td>
                <td colspan="2" class="watch-td">计量单位</td>
                <td colspan="3" class="watch-tdA">
                    <input class="easyui-textbox" type="text" name="uint" style="width: 240px" value="${fac.uint==null?"":fac.uint}" >
                </td>
            </tr>
            <tr>
                <td class="watch-td">MAC</td>
                <td colspan="3">
                    <input class="easyui-numberspinner formInput"  value="${fac.mac==null?"":fac.mac}" name="mac"  style="width: 240px">
                </td>
                <td colspan="2" class="watch-td">PC-STEL</td>
                <td colspan="3" class="watch-tdA">
                    <input class="easyui-numberspinner formInput" value="${fac.pcstel==null?"":fac.pcstel}" name="pcstel" style="width: 240px">
                </td>
            </tr>
            <tr>
                <td class="watch-td">PC-TWA</td>
                <td colspan="3">
                    <input class="easyui-numberspinner formInput"  value="${fac.pctwa==null?"":fac.pctwa}" name="pctwa"  style="width: 240px">
                </td>
                <td colspan="2" class="watch-td">检测周期</td>
                <td colspan="3" class="watch-tdA">
                    <input class="easyui-numberspinner formInput" value="${fac.testDate==null?"":fac.testDate}" name="testDate" style="width: 240px">
                </td>
            </tr>
            <tr>
                <td class="watch-td">备注</td>
                <td colspan="8" class="watch-tdA">
                    <input class="easyui-textbox" type="text" value="${fac.remarks==null?"":fac.remarks}" style="height: 100px;width: 573px" name="remarks" data-options="multiline:true">
                </td>
            </tr>
        </table>
    </form>
    <div class="form-button">
        <a href="javascript:void(0)" onclick="submitForm()" class="easyui-linkbutton"
           data-options="iconCls:'fa fa-save fa-lg'">保存</a>
    </div>
</div>
</body>
</html>